/**
 * 默认配置
 *  
 */

const mysql = require('mysql')

// const mysql = {
//   host: "localhost",
//   user: "root",
//   password: "root",
//   database: "express_mysql",
//   port: 3306
// }

const pool = mysql.createPool({
  connectionLimit: 20,
  host: "localhost",
  user: "root",
  password: "root",
  database: "express_mysql",
  port: 3306
})

module.exports.pool = pool